for (i = 0; i < 600; i++) {
    sleep(5000);
    gesture(1000, [500, device.height * 3 / 4], [500, 100]);
    gesture(1000, [device.width * 80 / 100, device.height * 90 / 100], [device.width * 80 / 100, device.height * 75 / 100]);

    sleep(6000);
    gesture(1000, [500, device.height * 3 / 4], [500, 100]);
    gesture(1000, [device.width * 80 / 100, device.height * 90 / 100], [device.width * 80 / 100, device.height * 75 / 100]);

    sleep(7000);
    gesture(1000, [500, device.height * 3 / 4], [500, 100]);
    gesture(1000, [device.width * 80 / 100, device.height * 90 / 100], [device.width * 80 / 100, device.height * 75 / 100]);

}